package com.ruoyi.job.remoteService;

import com.ruoyi.common.core.web.domain.CommonEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.text.ParseException;

@FeignClient(name = "tql-kingdee",path = "kingdee")
public interface KingdeeRemoteSevice {


    @PostMapping("/saveAllOrg")
    public void saveAllOrg(@RequestParam("approveDate")  String approveDate);



    //saveShopDept
    @PostMapping("/saveShopDept")
    public void saveShopDept(@RequestBody CommonEntity entity);


    @PostMapping("/saveMaterialTransUnit")
    public void saveMaterialTransUnit(@RequestParam("approveDate")  String approveDate);


    @PostMapping("/saveAllEmp")
    public void saveAllEmp(@RequestParam("approveDate")  String approveDate);


    @PostMapping("/saveMaterialPurchase")
    public void saveMaterialPurchase(@RequestParam("approveDate") String approveDate);

    @PostMapping("/saveMaterialTransferin")
    public void saveMaterialTransferin(@RequestParam("approveDate") String approveDate);

    @PostMapping("/saveMaterialTransferout")
    public void saveMaterialTransferout(@RequestParam("approveDate") String approveDate) throws ParseException ;

    @PostMapping("/saveMaterialIncase")
    public void saveMaterialIncase(@RequestParam("approveDate") String approveDate);

    }
